package file;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class FileReaderTest {
	
	public static void main(String[] args) throws IOException {
		
		File f = new File("C:\\java-master\\diary.txt");
		
		FileReader reader = new FileReader(f);
		
		int data = -1;
		while ((data = reader.read()) > -1) {
			char c = (char) data;
			System.out.print(c + "(" + data + ")");
		}
		
		reader.close();
	}
	
}
